package com.ruoyi.bbs.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 主题对象 bbs_thread
 * 
 * @author saruri
 * @date 2024-10-02
 */
public class BbsThread extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long tid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long fid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long topicId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String title;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long authorid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date dateline;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long views;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long postCount;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long replyCount;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer isSticky;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer isDigest;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer isRecommended;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer isHot;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String url;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String type;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer isEnable;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String tags;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date lastpost;

    /** 主题内容信息 */
    private List<BbsThreadContent> bbsThreadContentList;

    public void setTid(Long tid) 
    {
        this.tid = tid;
    }

    public Long getTid() 
    {
        return tid;
    }
    public void setFid(Long fid) 
    {
        this.fid = fid;
    }

    public Long getFid() 
    {
        return fid;
    }
    public void setTopicId(Long topicId) 
    {
        this.topicId = topicId;
    }

    public Long getTopicId() 
    {
        return topicId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setAuthorid(Long authorid) 
    {
        this.authorid = authorid;
    }

    public Long getAuthorid() 
    {
        return authorid;
    }
    public void setDateline(Date dateline) 
    {
        this.dateline = dateline;
    }

    public Date getDateline() 
    {
        return dateline;
    }
    public void setViews(Long views) 
    {
        this.views = views;
    }

    public Long getViews() 
    {
        return views;
    }
    public void setPostCount(Long postCount) 
    {
        this.postCount = postCount;
    }

    public Long getPostCount() 
    {
        return postCount;
    }
    public void setReplyCount(Long replyCount) 
    {
        this.replyCount = replyCount;
    }

    public Long getReplyCount() 
    {
        return replyCount;
    }
    public void setIsSticky(Integer isSticky) 
    {
        this.isSticky = isSticky;
    }

    public Integer getIsSticky() 
    {
        return isSticky;
    }
    public void setIsDigest(Integer isDigest) 
    {
        this.isDigest = isDigest;
    }

    public Integer getIsDigest() 
    {
        return isDigest;
    }
    public void setIsRecommended(Integer isRecommended) 
    {
        this.isRecommended = isRecommended;
    }

    public Integer getIsRecommended() 
    {
        return isRecommended;
    }
    public void setIsHot(Integer isHot) 
    {
        this.isHot = isHot;
    }

    public Integer getIsHot() 
    {
        return isHot;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setIsEnable(Integer isEnable) 
    {
        this.isEnable = isEnable;
    }

    public Integer getIsEnable() 
    {
        return isEnable;
    }
    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }
    public void setLastpost(Date lastpost) 
    {
        this.lastpost = lastpost;
    }

    public Date getLastpost() 
    {
        return lastpost;
    }

    public List<BbsThreadContent> getBbsThreadContentList()
    {
        return bbsThreadContentList;
    }

    public void setBbsThreadContentList(List<BbsThreadContent> bbsThreadContentList)
    {
        this.bbsThreadContentList = bbsThreadContentList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tid", getTid())
            .append("fid", getFid())
            .append("topicId", getTopicId())
            .append("title", getTitle())
            .append("authorid", getAuthorid())
            .append("dateline", getDateline())
            .append("views", getViews())
            .append("postCount", getPostCount())
            .append("replyCount", getReplyCount())
            .append("isSticky", getIsSticky())
            .append("isDigest", getIsDigest())
            .append("isRecommended", getIsRecommended())
            .append("isHot", getIsHot())
            .append("url", getUrl())
            .append("type", getType())
            .append("isEnable", getIsEnable())
            .append("tags", getTags())
            .append("lastpost", getLastpost())
            .append("bbsThreadContentList", getBbsThreadContentList())
            .toString();
    }
}
